package com.etc.pojo;

import org.springframework.stereotype.Component;

@Component
public class History {

    private int historyId;
    private User user;
    private Video video;
    private String date;

    public int getHistoryId() {
        return historyId;
    }

    public void setHistoryId(int historyId) {
        this.historyId = historyId;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    public Video getVideo() {
        return video;
    }

    public void setVideo(Video video) {
        this.video = video;
    }

    public String getDate() {
        return date;
    }

    public void setDate(String date) {
        this.date = date;
    }

    public History() {
    }

    public History(int historyId, User user, Video video, String date) {
        this.historyId = historyId;
        this.user = user;
        this.video = video;
        this.date = date;
    }

    public History(int historyId, Video video) {
        this.historyId = historyId;
        this.video = video;
    }
}
